<?php
/**
 * 控制器调用models范例 以及models使用pdo
 */
//see:  http://192.168.33.10/CI/index.php/_demo2/index

class _Demo2 extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
	}
	
	public function index()
	{
		echo "This is a test!";
		
		$this->load->model('demo2');
		
		$r = $this->demo2->read(1);
		print_r($r);
	}
}